package com.small.common.msg;

import java.util.List;

/**
 * 返回分页结果集
 */
public class UserMsgPage<T> extends Msg {

    private long total;

    private List<T> rows;
    
    private int pageNum;
    
    private int totalUser;

    public UserMsgPage() {
    }

    public UserMsgPage(List<T> rows) {
        this.rows = rows;
        this.setCode(1);
    }

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getTotalUser() {
        return totalUser;
    }

    public void setTotalUser(int totalUser) {
        this.totalUser = totalUser;
    }

}
